package com.c.ctgproject.entity.storage

class StorageMaterialInListEntity {
    /**
     * status : 0
     * msg : null
     * data : {"total":2,"list":[{"materialId":12,"materialName":"物料1-2","inWeight":10000,"inNum":null,"inTime":"2020-09-12 15:52:22"},{"materialId":12,"materialName":"物料1-2","inWeight":10000,"inNum":null,"inTime":"2020-09-12 15:56:26"}],"pageNum":1,"pageSize":20,"size":2,"startRow":1,"endRow":2,"pages":1,"prePage":0,"nextPage":0,"isFirstPage":true,"isLastPage":true,"hasPreviousPage":false,"hasNextPage":false,"navigatePages":8,"navigatepageNums":[1],"navigateFirstPage":1,"navigateLastPage":1}
     * success : true
     */
    var status = 0
    var msg: Any? = null
    var data: DataBean? = null
    var isSuccess = false

    class DataBean {
        /**
         * total : 2
         * list : [{"materialId":12,"materialName":"物料1-2","inWeight":10000,"inNum":null,"inTime":"2020-09-12 15:52:22"},{"materialId":12,"materialName":"物料1-2","inWeight":10000,"inNum":null,"inTime":"2020-09-12 15:56:26"}]
         * pageNum : 1
         * pageSize : 20
         * size : 2
         * startRow : 1
         * endRow : 2
         * pages : 1
         * prePage : 0
         * nextPage : 0
         * isFirstPage : true
         * isLastPage : true
         * hasPreviousPage : false
         * hasNextPage : false
         * navigatePages : 8
         * navigatepageNums : [1]
         * navigateFirstPage : 1
         * navigateLastPage : 1
         */
        var total = 0
        var pageNum = 0
        var pageSize = 0
        var size = 0
        var startRow = 0
        var endRow = 0
        var pages = 0
        var prePage = 0
        var nextPage = 0
        var isIsFirstPage = false
            private set
        var isIsLastPage = false
            private set
        var isHasPreviousPage = false
        var isHasNextPage = false
        var navigatePages = 0
        var navigateFirstPage = 0
        var navigateLastPage = 0
        var list: List<ListBean>? = null
        var navigatepageNums: List<Int>? = null

        fun setIsFirstPage(isFirstPage: Boolean) {
            isIsFirstPage = isFirstPage
        }

        fun setIsLastPage(isLastPage: Boolean) {
            isIsLastPage = isLastPage
        }

        class ListBean {
            /**
             * materialId : 12
             * materialName : 物料1-2
             * inWeight : 10000.0
             * inNum : null
             * inTime : 2020-09-12 15:52:22
             */
            var materialId = 0
            var meterialInNo = ""
            var materialName: String? = null
            var inWeight = 0.0
            var inNum: Any? = null
            var inTime: String? = null

        }
    }
}